package com.kgc.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class OrderExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OrderExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andOrdernumIsNull() {
            addCriterion("orderNum is null");
            return (Criteria) this;
        }

        public Criteria andOrdernumIsNotNull() {
            addCriterion("orderNum is not null");
            return (Criteria) this;
        }

        public Criteria andOrdernumEqualTo(String value) {
            addCriterion("orderNum =", value, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumNotEqualTo(String value) {
            addCriterion("orderNum <>", value, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumGreaterThan(String value) {
            addCriterion("orderNum >", value, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumGreaterThanOrEqualTo(String value) {
            addCriterion("orderNum >=", value, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumLessThan(String value) {
            addCriterion("orderNum <", value, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumLessThanOrEqualTo(String value) {
            addCriterion("orderNum <=", value, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumLike(String value) {
            addCriterion("orderNum like", value, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumNotLike(String value) {
            addCriterion("orderNum not like", value, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumIn(List<String> values) {
            addCriterion("orderNum in", values, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumNotIn(List<String> values) {
            addCriterion("orderNum not in", values, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumBetween(String value1, String value2) {
            addCriterion("orderNum between", value1, value2, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumNotBetween(String value1, String value2) {
            addCriterion("orderNum not between", value1, value2, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdercountsIsNull() {
            addCriterion("orderCounts is null");
            return (Criteria) this;
        }

        public Criteria andOrdercountsIsNotNull() {
            addCriterion("orderCounts is not null");
            return (Criteria) this;
        }

        public Criteria andOrdercountsEqualTo(Integer value) {
            addCriterion("orderCounts =", value, "ordercounts");
            return (Criteria) this;
        }

        public Criteria andOrdercountsNotEqualTo(Integer value) {
            addCriterion("orderCounts <>", value, "ordercounts");
            return (Criteria) this;
        }

        public Criteria andOrdercountsGreaterThan(Integer value) {
            addCriterion("orderCounts >", value, "ordercounts");
            return (Criteria) this;
        }

        public Criteria andOrdercountsGreaterThanOrEqualTo(Integer value) {
            addCriterion("orderCounts >=", value, "ordercounts");
            return (Criteria) this;
        }

        public Criteria andOrdercountsLessThan(Integer value) {
            addCriterion("orderCounts <", value, "ordercounts");
            return (Criteria) this;
        }

        public Criteria andOrdercountsLessThanOrEqualTo(Integer value) {
            addCriterion("orderCounts <=", value, "ordercounts");
            return (Criteria) this;
        }

        public Criteria andOrdercountsIn(List<Integer> values) {
            addCriterion("orderCounts in", values, "ordercounts");
            return (Criteria) this;
        }

        public Criteria andOrdercountsNotIn(List<Integer> values) {
            addCriterion("orderCounts not in", values, "ordercounts");
            return (Criteria) this;
        }

        public Criteria andOrdercountsBetween(Integer value1, Integer value2) {
            addCriterion("orderCounts between", value1, value2, "ordercounts");
            return (Criteria) this;
        }

        public Criteria andOrdercountsNotBetween(Integer value1, Integer value2) {
            addCriterion("orderCounts not between", value1, value2, "ordercounts");
            return (Criteria) this;
        }

        public Criteria andMoneyIsNull() {
            addCriterion("money is null");
            return (Criteria) this;
        }

        public Criteria andMoneyIsNotNull() {
            addCriterion("money is not null");
            return (Criteria) this;
        }

        public Criteria andMoneyEqualTo(String value) {
            addCriterion("money =", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotEqualTo(String value) {
            addCriterion("money <>", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyGreaterThan(String value) {
            addCriterion("money >", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyGreaterThanOrEqualTo(String value) {
            addCriterion("money >=", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyLessThan(String value) {
            addCriterion("money <", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyLessThanOrEqualTo(String value) {
            addCriterion("money <=", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyLike(String value) {
            addCriterion("money like", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotLike(String value) {
            addCriterion("money not like", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyIn(List<String> values) {
            addCriterion("money in", values, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotIn(List<String> values) {
            addCriterion("money not in", values, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyBetween(String value1, String value2) {
            addCriterion("money between", value1, value2, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotBetween(String value1, String value2) {
            addCriterion("money not between", value1, value2, "money");
            return (Criteria) this;
        }

        public Criteria andOrderoperationIsNull() {
            addCriterion("orderOperation is null");
            return (Criteria) this;
        }

        public Criteria andOrderoperationIsNotNull() {
            addCriterion("orderOperation is not null");
            return (Criteria) this;
        }

        public Criteria andOrderoperationEqualTo(String value) {
            addCriterion("orderOperation =", value, "orderoperation");
            return (Criteria) this;
        }

        public Criteria andOrderoperationNotEqualTo(String value) {
            addCriterion("orderOperation <>", value, "orderoperation");
            return (Criteria) this;
        }

        public Criteria andOrderoperationGreaterThan(String value) {
            addCriterion("orderOperation >", value, "orderoperation");
            return (Criteria) this;
        }

        public Criteria andOrderoperationGreaterThanOrEqualTo(String value) {
            addCriterion("orderOperation >=", value, "orderoperation");
            return (Criteria) this;
        }

        public Criteria andOrderoperationLessThan(String value) {
            addCriterion("orderOperation <", value, "orderoperation");
            return (Criteria) this;
        }

        public Criteria andOrderoperationLessThanOrEqualTo(String value) {
            addCriterion("orderOperation <=", value, "orderoperation");
            return (Criteria) this;
        }

        public Criteria andOrderoperationLike(String value) {
            addCriterion("orderOperation like", value, "orderoperation");
            return (Criteria) this;
        }

        public Criteria andOrderoperationNotLike(String value) {
            addCriterion("orderOperation not like", value, "orderoperation");
            return (Criteria) this;
        }

        public Criteria andOrderoperationIn(List<String> values) {
            addCriterion("orderOperation in", values, "orderoperation");
            return (Criteria) this;
        }

        public Criteria andOrderoperationNotIn(List<String> values) {
            addCriterion("orderOperation not in", values, "orderoperation");
            return (Criteria) this;
        }

        public Criteria andOrderoperationBetween(String value1, String value2) {
            addCriterion("orderOperation between", value1, value2, "orderoperation");
            return (Criteria) this;
        }

        public Criteria andOrderoperationNotBetween(String value1, String value2) {
            addCriterion("orderOperation not between", value1, value2, "orderoperation");
            return (Criteria) this;
        }

        public Criteria andPurchaseinfoIsNull() {
            addCriterion("purchaseInfo is null");
            return (Criteria) this;
        }

        public Criteria andPurchaseinfoIsNotNull() {
            addCriterion("purchaseInfo is not null");
            return (Criteria) this;
        }

        public Criteria andPurchaseinfoEqualTo(String value) {
            addCriterion("purchaseInfo =", value, "purchaseinfo");
            return (Criteria) this;
        }

        public Criteria andPurchaseinfoNotEqualTo(String value) {
            addCriterion("purchaseInfo <>", value, "purchaseinfo");
            return (Criteria) this;
        }

        public Criteria andPurchaseinfoGreaterThan(String value) {
            addCriterion("purchaseInfo >", value, "purchaseinfo");
            return (Criteria) this;
        }

        public Criteria andPurchaseinfoGreaterThanOrEqualTo(String value) {
            addCriterion("purchaseInfo >=", value, "purchaseinfo");
            return (Criteria) this;
        }

        public Criteria andPurchaseinfoLessThan(String value) {
            addCriterion("purchaseInfo <", value, "purchaseinfo");
            return (Criteria) this;
        }

        public Criteria andPurchaseinfoLessThanOrEqualTo(String value) {
            addCriterion("purchaseInfo <=", value, "purchaseinfo");
            return (Criteria) this;
        }

        public Criteria andPurchaseinfoLike(String value) {
            addCriterion("purchaseInfo like", value, "purchaseinfo");
            return (Criteria) this;
        }

        public Criteria andPurchaseinfoNotLike(String value) {
            addCriterion("purchaseInfo not like", value, "purchaseinfo");
            return (Criteria) this;
        }

        public Criteria andPurchaseinfoIn(List<String> values) {
            addCriterion("purchaseInfo in", values, "purchaseinfo");
            return (Criteria) this;
        }

        public Criteria andPurchaseinfoNotIn(List<String> values) {
            addCriterion("purchaseInfo not in", values, "purchaseinfo");
            return (Criteria) this;
        }

        public Criteria andPurchaseinfoBetween(String value1, String value2) {
            addCriterion("purchaseInfo between", value1, value2, "purchaseinfo");
            return (Criteria) this;
        }

        public Criteria andPurchaseinfoNotBetween(String value1, String value2) {
            addCriterion("purchaseInfo not between", value1, value2, "purchaseinfo");
            return (Criteria) this;
        }

        public Criteria andCreatedateIsNull() {
            addCriterion("createDate is null");
            return (Criteria) this;
        }

        public Criteria andCreatedateIsNotNull() {
            addCriterion("createDate is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedateEqualTo(Date value) {
            addCriterion("createDate =", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotEqualTo(Date value) {
            addCriterion("createDate <>", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateGreaterThan(Date value) {
            addCriterion("createDate >", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateGreaterThanOrEqualTo(Date value) {
            addCriterion("createDate >=", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateLessThan(Date value) {
            addCriterion("createDate <", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateLessThanOrEqualTo(Date value) {
            addCriterion("createDate <=", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateIn(List<Date> values) {
            addCriterion("createDate in", values, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotIn(List<Date> values) {
            addCriterion("createDate not in", values, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateBetween(Date value1, Date value2) {
            addCriterion("createDate between", value1, value2, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotBetween(Date value1, Date value2) {
            addCriterion("createDate not between", value1, value2, "createdate");
            return (Criteria) this;
        }

        public Criteria andDeliveridIsNull() {
            addCriterion("deliverId is null");
            return (Criteria) this;
        }

        public Criteria andDeliveridIsNotNull() {
            addCriterion("deliverId is not null");
            return (Criteria) this;
        }

        public Criteria andDeliveridEqualTo(Integer value) {
            addCriterion("deliverId =", value, "deliverid");
            return (Criteria) this;
        }

        public Criteria andDeliveridNotEqualTo(Integer value) {
            addCriterion("deliverId <>", value, "deliverid");
            return (Criteria) this;
        }

        public Criteria andDeliveridGreaterThan(Integer value) {
            addCriterion("deliverId >", value, "deliverid");
            return (Criteria) this;
        }

        public Criteria andDeliveridGreaterThanOrEqualTo(Integer value) {
            addCriterion("deliverId >=", value, "deliverid");
            return (Criteria) this;
        }

        public Criteria andDeliveridLessThan(Integer value) {
            addCriterion("deliverId <", value, "deliverid");
            return (Criteria) this;
        }

        public Criteria andDeliveridLessThanOrEqualTo(Integer value) {
            addCriterion("deliverId <=", value, "deliverid");
            return (Criteria) this;
        }

        public Criteria andDeliveridIn(List<Integer> values) {
            addCriterion("deliverId in", values, "deliverid");
            return (Criteria) this;
        }

        public Criteria andDeliveridNotIn(List<Integer> values) {
            addCriterion("deliverId not in", values, "deliverid");
            return (Criteria) this;
        }

        public Criteria andDeliveridBetween(Integer value1, Integer value2) {
            addCriterion("deliverId between", value1, value2, "deliverid");
            return (Criteria) this;
        }

        public Criteria andDeliveridNotBetween(Integer value1, Integer value2) {
            addCriterion("deliverId not between", value1, value2, "deliverid");
            return (Criteria) this;
        }

        public Criteria andDiscountidIsNull() {
            addCriterion("discountID is null");
            return (Criteria) this;
        }

        public Criteria andDiscountidIsNotNull() {
            addCriterion("discountID is not null");
            return (Criteria) this;
        }

        public Criteria andDiscountidEqualTo(Integer value) {
            addCriterion("discountID =", value, "discountid");
            return (Criteria) this;
        }

        public Criteria andDiscountidNotEqualTo(Integer value) {
            addCriterion("discountID <>", value, "discountid");
            return (Criteria) this;
        }

        public Criteria andDiscountidGreaterThan(Integer value) {
            addCriterion("discountID >", value, "discountid");
            return (Criteria) this;
        }

        public Criteria andDiscountidGreaterThanOrEqualTo(Integer value) {
            addCriterion("discountID >=", value, "discountid");
            return (Criteria) this;
        }

        public Criteria andDiscountidLessThan(Integer value) {
            addCriterion("discountID <", value, "discountid");
            return (Criteria) this;
        }

        public Criteria andDiscountidLessThanOrEqualTo(Integer value) {
            addCriterion("discountID <=", value, "discountid");
            return (Criteria) this;
        }

        public Criteria andDiscountidIn(List<Integer> values) {
            addCriterion("discountID in", values, "discountid");
            return (Criteria) this;
        }

        public Criteria andDiscountidNotIn(List<Integer> values) {
            addCriterion("discountID not in", values, "discountid");
            return (Criteria) this;
        }

        public Criteria andDiscountidBetween(Integer value1, Integer value2) {
            addCriterion("discountID between", value1, value2, "discountid");
            return (Criteria) this;
        }

        public Criteria andDiscountidNotBetween(Integer value1, Integer value2) {
            addCriterion("discountID not between", value1, value2, "discountid");
            return (Criteria) this;
        }

        public Criteria andUseridIsNull() {
            addCriterion("userId is null");
            return (Criteria) this;
        }

        public Criteria andUseridIsNotNull() {
            addCriterion("userId is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(Integer value) {
            addCriterion("userId =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(Integer value) {
            addCriterion("userId <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(Integer value) {
            addCriterion("userId >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(Integer value) {
            addCriterion("userId >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(Integer value) {
            addCriterion("userId <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(Integer value) {
            addCriterion("userId <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<Integer> values) {
            addCriterion("userId in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<Integer> values) {
            addCriterion("userId not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(Integer value1, Integer value2) {
            addCriterion("userId between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(Integer value1, Integer value2) {
            addCriterion("userId not between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andTicketinfoidIsNull() {
            addCriterion("ticketInfoId is null");
            return (Criteria) this;
        }

        public Criteria andTicketinfoidIsNotNull() {
            addCriterion("ticketInfoId is not null");
            return (Criteria) this;
        }

        public Criteria andTicketinfoidEqualTo(Integer value) {
            addCriterion("ticketInfoId =", value, "ticketinfoid");
            return (Criteria) this;
        }

        public Criteria andTicketinfoidNotEqualTo(Integer value) {
            addCriterion("ticketInfoId <>", value, "ticketinfoid");
            return (Criteria) this;
        }

        public Criteria andTicketinfoidGreaterThan(Integer value) {
            addCriterion("ticketInfoId >", value, "ticketinfoid");
            return (Criteria) this;
        }

        public Criteria andTicketinfoidGreaterThanOrEqualTo(Integer value) {
            addCriterion("ticketInfoId >=", value, "ticketinfoid");
            return (Criteria) this;
        }

        public Criteria andTicketinfoidLessThan(Integer value) {
            addCriterion("ticketInfoId <", value, "ticketinfoid");
            return (Criteria) this;
        }

        public Criteria andTicketinfoidLessThanOrEqualTo(Integer value) {
            addCriterion("ticketInfoId <=", value, "ticketinfoid");
            return (Criteria) this;
        }

        public Criteria andTicketinfoidIn(List<Integer> values) {
            addCriterion("ticketInfoId in", values, "ticketinfoid");
            return (Criteria) this;
        }

        public Criteria andTicketinfoidNotIn(List<Integer> values) {
            addCriterion("ticketInfoId not in", values, "ticketinfoid");
            return (Criteria) this;
        }

        public Criteria andTicketinfoidBetween(Integer value1, Integer value2) {
            addCriterion("ticketInfoId between", value1, value2, "ticketinfoid");
            return (Criteria) this;
        }

        public Criteria andTicketinfoidNotBetween(Integer value1, Integer value2) {
            addCriterion("ticketInfoId not between", value1, value2, "ticketinfoid");
            return (Criteria) this;
        }

        public Criteria andStatusidIsNull() {
            addCriterion("statusId is null");
            return (Criteria) this;
        }

        public Criteria andStatusidIsNotNull() {
            addCriterion("statusId is not null");
            return (Criteria) this;
        }

        public Criteria andStatusidEqualTo(Integer value) {
            addCriterion("statusId =", value, "statusid");
            return (Criteria) this;
        }

        public Criteria andStatusidNotEqualTo(Integer value) {
            addCriterion("statusId <>", value, "statusid");
            return (Criteria) this;
        }

        public Criteria andStatusidGreaterThan(Integer value) {
            addCriterion("statusId >", value, "statusid");
            return (Criteria) this;
        }

        public Criteria andStatusidGreaterThanOrEqualTo(Integer value) {
            addCriterion("statusId >=", value, "statusid");
            return (Criteria) this;
        }

        public Criteria andStatusidLessThan(Integer value) {
            addCriterion("statusId <", value, "statusid");
            return (Criteria) this;
        }

        public Criteria andStatusidLessThanOrEqualTo(Integer value) {
            addCriterion("statusId <=", value, "statusid");
            return (Criteria) this;
        }

        public Criteria andStatusidIn(List<Integer> values) {
            addCriterion("statusId in", values, "statusid");
            return (Criteria) this;
        }

        public Criteria andStatusidNotIn(List<Integer> values) {
            addCriterion("statusId not in", values, "statusid");
            return (Criteria) this;
        }

        public Criteria andStatusidBetween(Integer value1, Integer value2) {
            addCriterion("statusId between", value1, value2, "statusid");
            return (Criteria) this;
        }

        public Criteria andStatusidNotBetween(Integer value1, Integer value2) {
            addCriterion("statusId not between", value1, value2, "statusid");
            return (Criteria) this;
        }

        public Criteria andTickettypeidIsNull() {
            addCriterion("ticketTypeId is null");
            return (Criteria) this;
        }

        public Criteria andTickettypeidIsNotNull() {
            addCriterion("ticketTypeId is not null");
            return (Criteria) this;
        }

        public Criteria andTickettypeidEqualTo(Integer value) {
            addCriterion("ticketTypeId =", value, "tickettypeid");
            return (Criteria) this;
        }

        public Criteria andTickettypeidNotEqualTo(Integer value) {
            addCriterion("ticketTypeId <>", value, "tickettypeid");
            return (Criteria) this;
        }

        public Criteria andTickettypeidGreaterThan(Integer value) {
            addCriterion("ticketTypeId >", value, "tickettypeid");
            return (Criteria) this;
        }

        public Criteria andTickettypeidGreaterThanOrEqualTo(Integer value) {
            addCriterion("ticketTypeId >=", value, "tickettypeid");
            return (Criteria) this;
        }

        public Criteria andTickettypeidLessThan(Integer value) {
            addCriterion("ticketTypeId <", value, "tickettypeid");
            return (Criteria) this;
        }

        public Criteria andTickettypeidLessThanOrEqualTo(Integer value) {
            addCriterion("ticketTypeId <=", value, "tickettypeid");
            return (Criteria) this;
        }

        public Criteria andTickettypeidIn(List<Integer> values) {
            addCriterion("ticketTypeId in", values, "tickettypeid");
            return (Criteria) this;
        }

        public Criteria andTickettypeidNotIn(List<Integer> values) {
            addCriterion("ticketTypeId not in", values, "tickettypeid");
            return (Criteria) this;
        }

        public Criteria andTickettypeidBetween(Integer value1, Integer value2) {
            addCriterion("ticketTypeId between", value1, value2, "tickettypeid");
            return (Criteria) this;
        }

        public Criteria andTickettypeidNotBetween(Integer value1, Integer value2) {
            addCriterion("ticketTypeId not between", value1, value2, "tickettypeid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}